<?php
	include"conexao/conecta.php";
?>
<!DOCTYPE HTML>
<html lang="pt-br">
<head>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/index.js"></script>

	<script type="text/javascript" src="js/impresaoDados.js"></script>	
	<script type="text/javascript" src="js/impresaoDadosCidade.js"></script>	
	
	
	<script type="text/javascript" src="js/jquery-ui-1.11.1/jquery-ui.js"></script>
	<link rel="stylesheet" href="js/jquery-ui-1.11.1/jquery-ui.css">
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="css/style.css">
<title></title>
</head>

<body id="body">
	<div id="page">
		<div id="header">
			<img height="200px" src="imagens/logo_QM.png">
			
		<?php
			include "valida_sessao.php";
			
			
			
			if(isset($_SESSION['tipo_usuario'])){
				
				$id = $_SESSION['cd_pessoa'];
				$sql = "SELECT * FROM pessoa WHERE cd_pessoa LIKE '$id'";
				$rs = mysql_query($sql, $con);
				
				if($rs){
					$valor = mysql_fetch_array($rs);
					$msg = '<div id="form"><br/><br/><br/><br/><br/><br/><br/><br/>Seja Bem Vindo, '.strtoupper($valor['nm_pessoa'])."!!!</div>";
					echo $msg;
				}
				else{
					echo "fail";
				}
				
				
			}
			
			
		?>			
		
		</div>
		<?php
			include("template/sidebar.php");
		?>